﻿export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './User/login',
          },
        ],
      },
    ],
  },
  {
    name: '欢迎页',
    path: '/welcome',
    icon: 'smile',
    component: './Welcome',
    layout: {

    }
  },
  {
    name: '商户管理',
    icon: 'shop',
    access: 'canAdmin',
    path: '/merchantList',
    component: './MerchantList',
  },
  {
    name: '商户资料',
    icon: 'shop',
    path: '/merchantSelfUpdate',
    component: './MerchantSelfUpdate',
    access: 'onlyMerchant',
  },
  {
    name: '客户管理',
    icon: 'user',
    path: '/guestList',
    component: './GuestList',
  },
  {
    name: '密码修改',
    path: '/account/changePassword',
    component: './ChangePassword',
    hideInMenu: true,
  },


  {
    path: '/',
    redirect: '/welcome',
  },

  {
    component: './404',
  },
];
